package cn.csc.module.shop.convert.banner;

import cn.csc.framework.common.pojo.PageResult;
import cn.csc.module.shop.controller.admin.banner.vo.ShopBannerCreateReqVO;
import cn.csc.module.shop.controller.admin.banner.vo.ShopBannerRespVO;
import cn.csc.module.shop.controller.admin.banner.vo.ShopBannerUpdateReqVO;
import cn.csc.module.shop.dal.dataobject.banner.ShopBannerDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * banner Convert
 */
@Mapper
public interface ShopBannerConvert {

    ShopBannerConvert INSTANCE = Mappers.getMapper(ShopBannerConvert.class);

    ShopBannerDO convert(ShopBannerCreateReqVO bean);

    ShopBannerDO convert(ShopBannerUpdateReqVO bean);

    ShopBannerUpdateReqVO convert01(ShopBannerDO bean);

    ShopBannerRespVO convert(ShopBannerDO bean);

    List<ShopBannerRespVO> convertList(List<ShopBannerDO> list);

    PageResult<ShopBannerRespVO> convertPage(PageResult<ShopBannerDO> page);


}
